cmake_minimum_required(VERSION 3.15 FATAL_ERROR)

project(HttpClient LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Boost 1.75 REQUIRED COMPONENTS coroutine)

message("BOOST_INCLUDEDIR: ${BOOST_INCLUDEDIR}")

file (GLOB APP_FILES
        http_client_async.cpp
        )

add_executable(HttpClient ${APP_FILES})

target_link_libraries(HttpClient
        PUBLIC
        pthread
        )

add_executable(HttpClient2 http_client_sync.cpp)

target_link_libraries(HttpClient2
        PUBLIC
        pthread
        )

add_executable(HttpClient3 http_client_coro.cpp)

target_link_libraries(HttpClient3
        PUBLIC
        Boost::coroutine
        pthread
        )

